package com.slz3.business.module.drawManagement.draParticipateMember.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.drawManagement.draParticipateMember.domain.DraParticipateMember;
import com.slz3.business.module.drawManagement.draParticipateMember.domain.DraParticipateMemberCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class DraParticipateMemberResAtomic extends DraParticipateMemberResExecutor {

    public Mono<ServerResponse> add_$DraParticipateMemberUpdateLock(ServerRequest req, DraParticipateMember draParticipateMember) {
        return DraParticipateMemberResSafeValid.add(req, draParticipateMember) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, draParticipateMember);
    }

    public Mono<ServerResponse> delete_$DraParticipateMemberUpdateLock(ServerRequest req, DraParticipateMemberCondition draParticipateMemberCondition) {
        return DraParticipateMemberResSafeValid.delete(req, draParticipateMemberCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$DraParticipateMemberUpdateLock(ServerRequest req, DraParticipateMember draParticipateMember) {
        return DraParticipateMemberResSafeValid.modify(req, draParticipateMember) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, draParticipateMember);
    }

    public Mono<ServerResponse> info_$DraParticipateMemberUpdateLock(ServerRequest req) {
        return DraParticipateMemberResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$DraParticipateMemberUpdateLock(ServerRequest req, DraParticipateMemberCondition draParticipateMemberCondition) {
        return DraParticipateMemberResSafeValid.auditSubmit(req, draParticipateMemberCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$DraParticipateMemberUpdateLock(ServerRequest req, DraParticipateMemberCondition draParticipateMemberCondition) {
        return DraParticipateMemberResSafeValid.audit(req, draParticipateMemberCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$DraParticipateMemberUpdateLock(ServerRequest req, DraParticipateMemberCondition draParticipateMemberCondition) {
        return DraParticipateMemberResSafeValid.auditReject(req, draParticipateMemberCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$DraParticipateMemberUpdateLock(ServerRequest req, DraParticipateMemberCondition draParticipateMemberCondition) {
        return DraParticipateMemberResSafeValid.usingEnable(req, draParticipateMemberCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$DraParticipateMemberUpdateLock(ServerRequest req, DraParticipateMemberCondition draParticipateMemberCondition) {
        return DraParticipateMemberResSafeValid.usingDisable(req, draParticipateMemberCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
